package com.jy.api.signUpReq;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by xiaohua on 2018/8/8.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AdminPayBill {
    //现金
    private Double cashAmount = 0d;
    //阿里扫码金额
    private Double alipayAmount = 0d;
    //微信扫码金额
    private Double wechatAmount = 0d;
    //会员金额
    private Double memberAmount = 0d;
    //翼支付
    private Double wingPayAmount = 0d;
    //京东刷卡支付
    private Double jdMicroPayAmount = 0d;
    //QQ刷卡支付
    private Double qqMicroPayAmount = 0d;
    //会员卡支付
    private Double smMicroPayAmount = 0d;
    //银联支付
    private Double unionPayAmount = 0d;
    //现金笔数
    Integer cashCount = 0;
    //微信笔数
    Integer wxCount = 0;
    //阿里笔数
    Integer aliCount = 0;
    //京东笔数
    Integer jdCount =0;
    //QQ笔数
    Integer qqCount=0;
    //会员笔数
    Integer memberCount = 0;
    //翼支付
    Integer wingCount =0;
    //会员卡
    Integer smCount=0;
    //银联笔数
    Integer unionCount = 0;




    public Double sum(Double amount,Double obj){
        BigDecimal bigDecimal = new BigDecimal(Double.toString(amount));
        BigDecimal bigDecimal2 = new BigDecimal(Double.toString(obj));
        return bigDecimal.add(bigDecimal2).doubleValue();
    }
}
